package com.jd.sunny.java.multithreading.thread;

import org.apache.log4j.Logger;


public class TestThread extends Thread {

    final Logger logger = Logger.getLogger(TestThread.class);


    public TestThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            try {
                Thread.sleep(1000);
                logger.warn(this.getName() + i);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }

    /**
     * @param args
     */
    public static void main(String[] args) {

        TestThread tt = new TestThread("����");
        tt.start();

    }

}
